package com.iyunsir.man.sever.impl;
import com.iyunsir.man.entity.Man;
import com.iyunsir.man.mapper.ManMapper;
import com.iyunsir.man.sever.ManService;
import com.iyunsir.man.vo.ManQuery;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ManServicelmpl implements ManService {
@Resource
private ManMapper manMapper;

    @Override
    public List<Man> getManList(ManQuery param) {
        return manMapper.getManList(param);
    }

    @Override
    public Long countManList(ManQuery param) {
        return manMapper.countManList(param);
    }

    @Override
    public void addMan(Man man) {
        manMapper.addMan(man);
    }

    @Override
    public void deleteManByIds(String ids) {
        manMapper.deleteManByIds(ids);
    }

    @Override
    public Man getManById(Integer id) {
        return manMapper.getManById(id);
    }

    @Override
    public void updateMan(Man man) {
        manMapper.updateMan(man);
    }
}
